<div ng-include="'html/component/nav.html'" ng-controller="NavCtrl"></div>
<div class="report_query">
	<div ng-include="'html/component/report.html'" ng-controller="ReportIndexCtrl"></div>
	<div class="report_main report_cont">
		<div class="report_top">
			<p class="number">
				<!--库存数量--><span class="name">{{language.TIPS_REPORT_STORE_NUM}}</span><span class="val">{{goods | language_filter_show:'GoodsName'}}</span><!--在库--><span class="name">{{language.TIPS_REPORT_IN_STORE}}</span><span class="val">{{stock.stock_num}}</span><!--在途--><span class="name">{{language.TIPS_REPORT_IN_TRANSIT}}</span><span class="val">{{stock.road_num}}</span>
			</p>
			<div class="search_wrap">
				<button ng-click="search_goods(input_keywords);"></button>
				<input type="text"  ng-model="input_keywords"/>
			</div>
		</div>
		<div class="report_form">
			<p class="form_title" ng-click = 'chart_list();'>
				<!--最近30天库存数-->
				{{language.TIPS_REPORT_THIRD_DAYS_INVENTORY}}<span class="triangle" ng-class="{true:'',false:'down'}[chart_show]"></span>
			</p>
			<div class="form_cont" id="chart_goods_stock" style="width: 100%; height: 400px;" ng-show ="chart_show"></div>
			<p class="form_title" ng-click = 'table_list();' >
				<!--最近30天库存变更记录-->
				{{language.TIPS_REPORT_THIRD_CHANGE_RECORD}}<span class="triangle" ng-class="{true:'',false:'down'}[table_show]"></span>
			</p>
			<table class="form_cont" ng-show ="table_show">
				<tr>
					<th><!--日期-->{{language.TIPS_REPORT_DAET}}</th>
					<th><!--在库数量-->{{language.TIPS_REPORT_IN_STORE_NUM}}</th>
					<th><!--销售-->{{language.TIPS_REPORT_SELL}}</th>
					<th><!--入库-->{{language.TIPS_REPORT_PUT_IN_STORE}}</th>
					<th><!--退库-->{{language.TIPS_REPORT_OUT_OF_STORE}}</th>
					<th><!--调入-->{{language.TIPS_REPORT_GOODS_FOLD}}</th>
					<th><!--调出-->{{language.TIPS_REPORT_GOODS_EXPORT}}</th>
				</tr>
				<tr ng-repeat="day in days">
					<td>{{day}}</td>
					<td>{{stockChange[day].stockNum}}</td>
					<td>{{stockChange[day]['11'].stock_change_num}}</td>
					<td>{{stockChange[day]['16'].stock_change_num}}</td>
					<td>{{stockChange[day]['1'].stock_change_num}}</td>
					<td>{{stockChange[day]['9'].stock_change_num}}</td>
					<td>{{stockChange[day]['10'].stock_change_num}}</td>
				</tr>
			</table>
		</div>
	</div>
</div>
<!--ng-repeat="(k,v) in stockChange[key] track by k"-->